MyDAC

TMyConnection Members

TMyConnection class overview.

Properties

Name Description

ClientVersion (inherited from TCustomMyConnection)

Contains the version of the MySQL Client library.

ConnectDialog (inherited from TCustomDAConnection)

Allows to link a TCustomConnectDialog component.

Connected

Used to establish a database connection.

ConnectionTimeout (inherited from TCustomMyConnection)

Used to specify the amount of time to attempt to establish a connection.

ConnectString (inherited from TCustomDAConnection)

Used to specify the connection information, such as: UserName, Password, Server, etc.

ConvertEOL (inherited from TCustomDAConnection)

Allows customizing line breaks in string fields and parameters.

Database

Used to specify the database name.

HttpOptions

Holds a THttpOptions object that contains settings for HTTP connection.

InTransaction (inherited from TCustomDAConnection)

Indicates whether the transaction is active.

IOHandler

Used to assign an external component for communication between MyDAC and MySQL server.

IsolationLevel (inherited from TCustomMyConnection)

Used to specify extent to which all outside transactions interfere with subsequent transactions of current connection.

LastWarningCount (inherited from TCustomMyConnection)

Used to get the number of warnings resulting from the execution of the most recent statement.

LoginPrompt (inherited from TCustomDAConnection)

Specifies whether a login dialog appears immediately before opening a new connection.

Options

Specifies the behaviour of TMyConnection object.

Password

Used to specify the password.

Pooling (inherited from TCustomDAConnection)

Enables or disables using connection pool.

PoolingOptions (inherited from TCustomDAConnection)

Specifies the behaviour of connection pool.

Port

Used to specify the port number for a TCP/IP connection.

Server

Used to specify the server to connect to.

ServerVersion (inherited from TCustomMyConnection)

Holds the version of MySQL server.

SSLOptions

Used to set the properties required for protected SSL connection with the server.

ThreadId (inherited from TCustomMyConnection)

Used to return the thread ID of the current connection.

Username

Used to specify the username.

Methods

Name Description

ApplyUpdates (inherited from TCustomDAConnection)

Overloaded. Applies changes in datasets.

AssignConnect (inherited from TCustomMyConnection)

Shares database connection between the TCustomMyConnection components.

Commit (inherited from TCustomDAConnection)

Commits current transaction.

Connect (inherited from TCustomDAConnection)

Establishes a connection to the server.

CreateDataSet (inherited from TCustomMyConnection)

Returns a new instance of TCustomMyDataSet class and associates it with this connection object.

CreateSQL (inherited from TCustomDAConnection)

Creates a component for queries execution.

Disconnect (inherited from TCustomDAConnection)

Performs disconnect.

ExecProc (inherited from TCustomDAConnection)

Allows to execute stored procedure or function providing its name and parameters.

ExecProcEx (inherited from TCustomDAConnection)

Allows to execute a stored procedure or function.

ExecSQL (inherited from TCustomMyConnection)

Executes any SQL statement outside TMyQuery or TMyCommand components.

ExecSQLEx (inherited from TCustomDAConnection)

Executes any SQL statement outside the TQuery or TSQL components.

GetCharsetNames (inherited from TCustomMyConnection)

Populates a string list with the names of available charsets.

GetDatabaseNames (inherited from TCustomDAConnection)

Returns a database list from the server.

GetExecuteInfo (inherited from TCustomMyConnection)

Returns the result of the last query execution.

GetKeyFieldNames (inherited from TCustomDAConnection)

Provides a list of available key field names.

GetStoredProcNames (inherited from TCustomDAConnection)

Returns a list of stored procedures from the server.

GetTableNames (inherited from TCustomDAConnection)

Provides a list of available tables names.

GetTriggerNames (inherited from TCustomMyConnection)

Returns a list of triggers from the server.

MonitorMessage (inherited from TCustomDAConnection)

Sends a specified message through the TCustomDASQLMonitor component.

Ping (inherited from TCustomDAConnection)

Used to check state of connection to the server.

ReleaseSavepoint (inherited from TCustomMyConnection)

Releases the specified savepoint without affecting any work that has been performed after its creation.

RemoveFromPool (inherited from TCustomDAConnection)

Marks the connection that should not be returned to the pool after disconnect.

Rollback (inherited from TCustomDAConnection)

Discards all current data changes and ends transaction.

RollbackToSavepoint (inherited from TCustomMyConnection)

Cancels all updates for the current transaction.

Savepoint (inherited from TCustomMyConnection)

Defines a point in the transaction to which you can roll back later.

StartTransaction (inherited from TCustomDAConnection)

Begins a new user transaction.

Events

Name Description

OnConnectionLost (inherited from TCustomDAConnection)

This event occurs when connection was lost.

OnError (inherited from TCustomDAConnection)

This event occurs when an error has arisen in the connection.

OnWarning

Occurs when LastWarningCount is greater than 0.
© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback